<html>
<head>
  <title>Evernote Export</title>
  <basefont face="微软雅黑" size="2" />
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <meta name="exporter-version" content="YXBJ Windows/307941 (zh-CN, DDL); Windows/10.0.0 (Win64);"/>
  <style>
    body, td {
      font-family: 微软雅黑;
      font-size: 10pt;
    }
  </style>
</head>
<body>
<a name="908"/>

<div>
<span><div><div>配置流程：</div><div>1）下载flutter SDK</div><div>2）下载Android studio/Android SDK （需要翻墙，不能翻墙需要手动配置）</div><div>3）IDE下载Dart/Flutter插件</div><div>4）IDE配置flutter SDK</div><div><img src="flutter 安装与入门_files/Image.png" type="image/png" data-filename="Image.png"/></div><div><img src="flutter 安装与入门_files/Image [1].png" type="image/png" data-filename="Image.png"/></div><div><a href="https://blog.csdn.net/yyanjun/article/details/80682586">https://blog.csdn.net/yyanjun/article/details/80682586</a></div><div>5）配置gradle:</div><div><a href="https://blog.csdn.net/qq_16071655/article/details/84106853">https://blog.csdn.net/qq_16071655/article/details/84106853</a></div><div style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px;"><br/></div><div style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px;"><span style="font-size: 0.9em; color: rgb(51, 51, 51); font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">//（退出as，删除</span><span style="font-size: 8pt; color: rgb(51, 51, 51); font-family: Menlo; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">D:\app\flutter\bin\cache的</span><span style="font-size: 8pt; color: rgb(51, 51, 51); font-family: Menlo; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">lockfile文件,再次运行。）</span></div><ol><li><div style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px;"><span style="font-size: 8pt; color: rgb(51, 51, 51); font-family: Menlo; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">项目中的</span><span style="font-size: 8pt; color: rgb(51, 51, 51); font-family: Menlo; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">build.gradle文件，修改成如下配置：</span><br/></div></li></ol><div style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px;"><span style="font-size: 8pt; color: rgb(51, 51, 51); font-family: Menlo; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;"><img src="flutter 安装与入门_files/Image [2].png" type="image/png" data-filename="Image.png"/></span></div><div style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px;"><span style="font-size: 8pt; color: rgb(51, 51, 51); font-family: Menlo; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">         2） D:\app\flutter\packages\flutter_tools\gradle下的flutter.gradle文件也修改成如下配置：</span></div><div style="background-color:rgb(250, 250, 250);color:rgb(51, 51, 51);font-family:Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace;font-size:0.9em;font-variant-caps:normal;font-variant-ligatures:normal;letter-spacing:normal;line-height:1.42857;orphans:2;widows:2;word-spacing:0px;"></div><div style="background-color: rgb(255, 255, 255); font-size: 10.8pt;"><span style="color: rgb(0, 0, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt;">maven { url</span> <span style="color: rgb(0, 128, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-weight: bold;">'</span><a href="https://maven.aliyun.com/repository/google" style="font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-weight: bold;">https://maven.aliyun.com/repository/google</a><span style="color: rgb(0, 128, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-weight: bold;">'</span> <span style="color: rgb(0, 0, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt;">}</span></div><div style="background-color: rgb(255, 255, 255); font-size: 10.8pt;"><span style="color: rgb(0, 0, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt;">maven { url</span> <span style="color: rgb(0, 128, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-weight: bold;">'</span><a href="https://maven.aliyun.com/repository/gradle-plugin" style="font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-weight: bold;">https://maven.aliyun.com/repository/gradle-plugin</a><span style="color: rgb(0, 128, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-weight: bold;">'</span> <span style="color: rgb(0, 0, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt;">}</span></div><div style="background-color: rgb(255, 255, 255); font-size: 10.8pt;"><span style="color: rgb(0, 0, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt;">maven { url</span> <span style="color: rgb(0, 128, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-weight: bold;">'</span><a href="https://maven.aliyun.com/repository/public" style="font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-weight: bold;">https://maven.aliyun.com/repository/public</a><span style="color: rgb(0, 128, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-weight: bold;">'</span> <span style="color: rgb(0, 0, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt;">}</span></div><div style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px;"><span style="color: rgb(0, 0, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">maven { url</span> <span style="color: rgb(0, 128, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857; font-weight: bold;">'</span><a href="https://maven.aliyun.com/repository/jcenter" style="font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857; font-weight: bold;">https://maven.aliyun.com/repository/jcenter</a><span style="color: rgb(0, 128, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857; font-weight: bold;">'</span> <span style="color: rgb(0, 0, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">}</span></div><div style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px;"><span style="color: rgb(0, 0, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;"><br/></span></div><div>6）windows:新增环境变量：</div><div style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px;"><span style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px; color: rgb(51, 51, 51); font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">PUB_HOSTED_URL =====</span> <a href="https://pub.flutter-io.cn/" style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">https://pub.flutter-io.cn</a></div><div style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px;"><span style="background-color:rgb(250, 250, 250);font-size:0.9em;"><span style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px; color: rgb(51, 51, 51); font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">FLUTTER_STORAGE_BASE_URL =====</span> <a href="https://storage.flutter-io.cn/" style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;">https://storage.flutter-io.cn</a></span><span style="color: rgb(0, 0, 0); font-family: &quot;Source Code Pro&quot;; font-size: 10.8pt; font-variant-caps: normal; font-variant-ligatures: normal; line-height: 1.42857;"><br/></span></div><div style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px;"><br/></div><div style="background-color: rgb(250, 250, 250); font-size: 0.9em; letter-spacing: normal; orphans: 2; widows: 2; word-spacing: 0px;"><br/></div><h1 style="box-sizing: border-box; outline: 0px; margin: 8px 0px 16px; padding: 0px; font-size: 28px; overflow-wrap: break-word; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="box-sizing: border-box; outline: 0px; font-size: 28px; overflow-wrap: break-word; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(79, 79, 79); font-family: &quot;Microsoft YaHei&quot;, &quot;SF Pro Display&quot;, Roboto, Noto, Arial, &quot;PingFang SC&quot;, sans-serif; font-variant-caps: normal; font-variant-ligatures: common-ligatures; font-weight: bold; line-height: 36px;">Flutter从入门到进阶：</span></h1><div><a href="https://blog.csdn.net/hekaiyou/article/details/78037990">https://blog.csdn.net/hekaiyou/article/details/78037990</a></div><div><br/></div></div><div>1）下载项目示例代码：<a href="https://github.com/alibaba/flutter-go">https://github.com/alibaba/flutter-go</a></div><div>2）点击获取全部依赖<img src="flutter 安装与入门_files/Image [3].png" type="image/png" data-filename="Image.png"/></div><div>下载完成后不再报错：</div><div><img src="flutter 安装与入门_files/Image [4].png" type="image/png" data-filename="Image.png"/></div><div>3）在Android手机或模拟器上测试</div></span>
</div></body></html> 